<script type="text/javascript">
if (typeof jQuery == 'undefined'){
    document.write(unescape("%3Cscript src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<div class="block block-account">
    <div class="block-title">
        <strong><span><?php echo Mage::helper('marketplacepartner')->__('My Accounting'); ?></span></strong>
    </div>
    <div class="block-content">
        <ul>
            <?php $_links = $this->getLinks(); ?>
            <?php $_index = 1; ?>
            <?php $_count = count($_links); ?>
            <?php foreach ($_links as $_link): ?>
                <?php $_last = ($_index++ >= $_count); ?>
                <?php if ($this->isActive($_link)): ?>
                    <li class="current<?php echo ($_last ? ' last' : '') ?>"><strong><?php echo $_link->getLabel() ?></strong></li>
                <?php else: ?>
                    <li<?php echo ($_last ? ' class="last"' : '') ?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a></li>
                <?php endif; ?>
            <?php endforeach; ?>
			
        </ul>
    </div>
</div>
<?php 
$partner = Mage::getModel('marketplaceprofile/marketplaceprofile')->getPartnerProfileById(Mage::getSingleton('customer/session')->getCustomerId());
?>
<script>
jQuery.noConflict();
jQuery(function(){
	var id=('<?php echo $partner['wantpartner']?>'=='')?'0':'<?php echo $partner['wantpartner']?>';
	if(id=='0')	{
		jQuery('.block-account .block-content ul li:gt(9)').remove();
		jQuery('.block-account .block-content ul li:last').addClass('last');
		
	}		
});

</script>